//
//  Common.swift
//  WeIBo
//
//  Created by 苏文潇 on 2017/3/8.
//  Copyright © 2017年 苏文潇. All rights reserved.
//

import UIKit

//切换根视图控制器的通知
let SwitchNotification: String = "SwitchNotification"

//  获取当前屏幕的宽度
let ScreenWidth = UIScreen.main.bounds.size.width
let ScreenHeight = UIScreen.main.bounds.size.height

//创建随机颜色

func creatRandomColor() -> UIColor{
    
    let red = arc4random() % 256
    let green = arc4random() % 256
    let blue = arc4random() % 256
    
    return UIColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
}
